package com.cloud.code.牛客网;

import java.util.*;

/**
 * HJ26 字符串排序
 */
public class Test9 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        while (scanner.hasNext()){
            String line = scanner.nextLine();
            List<Character> list = new ArrayList<>();
            char[] chars = line.toCharArray();
            for(Character character: chars){
                if(Character.isLetter(character)){
                    list.add(character);
                }
            }

            list.sort(new Comparator<Character>() {
                @Override
                public int compare(Character o1, Character o2) {
                    return Character.toLowerCase(o1) - Character.toLowerCase(o2);
                }
            });

            StringBuffer stringBuffer = new StringBuffer();
            int count= 0;
            for (int i = 0; i < chars.length; i++) {
                if(Character.isLetter(chars[i])){
                    stringBuffer.append(list.get(count));
                    count ++;
                }else {
                    stringBuffer.append(chars[i]);

                }
            }

            System.out.println(stringBuffer);
        }
    }
}
